package com.ft.oa.utils;

import com.ft.oa.service.sys.SysOperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 记录操作日志工具类
 */
@Component
public class OperateLogUtils {

    private static SysOperateLogService sysOperateLogService;

    @Autowired
    public OperateLogUtils(SysOperateLogService sysOperateLogService) {
        OperateLogUtils.sysOperateLogService = sysOperateLogService;
    }

    public static void saveOperateLog(String info, String module, String type){
        sysOperateLogService.saveOperateLog(info, module, type);
    }
}
